<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // //字符串方法
        // let str  = "sjdaidjamasas"
        // console.log(str.includes("s"))
        // console.log(str.startsWith("sjd"))
        // console.log(str.endsWith("as"))
        // console.log(str.repeat(4))
        // //数组的扩展
        // console.log(Number.isFinite(60));
        // console.log(Number.isFinite(NaN));
        // console.log(Number.isFinite(Infinity));
        // console.log(Number.isFinite(60 / 0));
        // console.log(Number.isFinite(60 / 30));

        // console.log(Number.isNaN(NaN));
        // console.log(Number.isNaN(666));

        // console.log(Number.isInteger(7));
        //  console.log(Number.isInteger(8.1));
        //  console.log(Number.isInteger(9.0));

        //  console.log(Math.trunc(8.3));
        // console.log(Math.trunc(7.6));
        // console.log(Math.trunc(8.433211));

        // console.log(Math.sign(7)); 
        // console.log(Math.sign(0)); 
        // console.log(Math.sign(-7));

        //对象上的方法
        const bbb = {
            name:"woshuai",
            age:30
        }
        const bvb = {
            name:"woshuai",
            ppp(){
                console.log("牛逼")
            }
        }
        const bcb = {
            name:"woshuai",
            pmo(){
                console.log("mnvv")
            }
        }
        Object.assign(bbb,bvb,bcb);
        console.log(bbb)
    </script>
</body>
</html>